package zhu.areas.match.data;

import java.util.Date;

import zhu.areas.user.data.User;
/**
 *  @hibernate.class table="T_CompResult" dynamic-insert="true" dynamic-update="true"
 * @author Administrator
 *
 */
public class CompResult implements java.io.Serializable{

	private int compID;
	public User puber; //发布者
	private CompApp compApp;

	
	private String resultTitle;
	private String resultContent;
	private Date resultPubTime;
	private String attachmentName;
	private String attachmentAddr;
	public String puberName;
	public CompResult(){
		
	}
	public CompResult(int compID){
		this.compID=compID;
	}
	/**
	 * @hibernate.id column="CompID" unsaved-value="null"
	 *               generator-class="foreign"
	 * @hibernate.generator-param name="property" value="compApp" 
	 */
	public int getCompID() {
		return compID;
	}
	public void setCompID(int compID) {
		this.compID = compID;
	}
	/**
	 * @hibernate.property column = "ResultTitle" not-null="true"
	 * @return
	 */
	public String getResultTitle() {
		return resultTitle;
	}
	public void setResultTitle(String resultTitle) {
		this.resultTitle = resultTitle;
	}
	/**
	 * @hibernate.property column = "ResultContent" not-null="true"
	 * @return
	 */
	public String getResultContent() {
		return resultContent;
	}
	public void setResultContent(String resultContent) {
		this.resultContent = resultContent;
	}
	/**
	 * @hibernate.property column = "ResultPubTime" not-null="true"
	 * @return
	 */
	public Date getResultPubTime() {
		return resultPubTime;
	}
	public void setResultPubTime(Date resultPubTime) {
		this.resultPubTime = resultPubTime;
	}
	/**
	 * @hibernate.property column = "AttachMentName" not-null="false"
	 * @return
	 */
	public String getAttachmentName() {
		return attachmentName;
	}
	public void setAttachmentName(String attachmentName) {
		this.attachmentName = attachmentName;
	}
	/**
	 * @hibernate.property column = "AttachMentAddr" not-null="false"
	 * @return
	 */
	public String getAttachmentAddr() {
		return attachmentAddr;
	}
	public void setAttachmentAddr(String attachmentAddr) {
		this.attachmentAddr = attachmentAddr;
	}
	/**
	 * @hibernate.one-to-one column="CompID"  class="zhu.areas.match.data.CompApp"
	 *                      
	 */
	public CompApp getCompApp() {
		return compApp;
	}
	public void setCompApp(CompApp compApp) {
		this.compApp = compApp;
	}
	/** 
	*@hibernate.many-to-one class="zhu.areas.user.data.User"	  not-null="true"
	* column="PuberID" 
	*/
	public User getPuber() {
		return puber;
	}
	public void setPuber(User puber) {
		this.puber = puber;
	}
	/**
	 * @hibernate.property column = "PuberName" not-null="false"
	 * @return
	 */
	public String getPuberName() {
		return puberName;
	}
	public void setPuberName(String puberName) {
		this.puberName = puberName;
	}
	
}
